package com.qfedu.point.controller;

import com.qfedu.common.core.common.R;
import com.qfedu.point.service.PointInfoService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * 以梦为马，以汗为泉，不忘初心，不负韶华
 *
 * @author zqh (ZQH)
 * @version 1.0
 * @date 2025/6/16 19:07
 */
@RestController
@RequestMapping("/user/point")
public class PointInfoController {
    @Resource
    private PointInfoService pointInfoService;

    //远程调用积分服务
    @PostMapping("/remote/add")
    public R remoteAddPoint(Integer pointType){
        pointInfoService.remoteAddPoint(pointType);
        return R.ok();
    }
}